python format only 1 decimal place

76

python format only 1 decimal place -

>>> "{0:0.1f}".format(45.34531)
'45.3'

Comments

Submit
0 Comments